package com.cyn;

import java.io.File;

public class DeleteFolder {
    public static void main(String[] args) {
//        String folderPath = "E:\\Projects\\company\\hfmis-ui-qinghai\\node_modules\\.cache\\babel-loader";
//        deleteFolder(new File(folderPath));

        int i=1;
        System.out.println(i==1);
    }
    
    public static void deleteFolder(File folder) {
        if(folder.isDirectory()) {
            File[] files = folder.listFiles();
            if(files != null) {
                for(File file : files) {
                    deleteFolder(file);
                }
            }
        }
        folder.delete();
    }
}